package com.rd.student.jiaji.class4.suyan.zrrd.day07;

public class Car {
    //成员变量
    private String name;
    private String color;
    //误差构造方法
    public Car(){
        System.out.println("Car的无参构造方法被调用");
    }
    public Car(String name,String color){
        this.color=color;
        this.name=name;
    }
    public String getName(){
        return this.name;
    }
    public String getColor(){
        return this.color;
    }
}
